<h2>Set new password</h2>
<?php if($done): ?>
<?php include_partial('global/messages') ?>
<?php else:?>
<form method="post" name="set_password">
    <?php echo $form->renderHiddenFields(false) ?>
    <ul class="contactform">
        <li>
            <label for="<?php echo $form['password']->renderLabelName() ?>"><?php echo $form['password']->renderLabelName() ?><span class="required">*</span></label>
            <span class="fieldbox"><?php echo $form['password']->render() ?></span>
        </li>
        <?php if ($form['password']->hasError()): ?>
            <li>
                <p><?php echo $form['password']->getError() ?></p>
            </li>
        <?php endif; ?>
        <li>
            <label for="<?php echo $form['confirm_password']->renderLabelName() ?>"><?php echo $form['confirm_password']->renderLabelName() ?><span class="required">*</span></label>
            <span class="fieldbox"><?php echo $form['confirm_password']->render() ?></span>
        </li>
        <?php if ($form['confirm_password']->hasError()): ?>
            <li>
                <p><?php echo $form['confirm_password']->getError() ?></p>
            </li>
        <?php endif; ?>
        <li>
        </li>
        <li>
            <input type="button" name="sendbutton" onclick="document.forms['set_password'].submit();" class="button send">
        </li>
    </ul>
</form>
<?php endif ?>